package com.qf.model;

import java.math.BigDecimal;

public class Car {
    private Integer id;
    private Integer pid;//关联的商品id
    private Goods good;//关联的具体商品
    private Integer cnum;//数量
    private BigDecimal csum;//总计
    private Integer uid;//关联用户


    @Override
    public String toString() {
        return "Car{" +
                "id=" + id +
                ", pid=" + pid +
                ", good=" + good +
                ", cnum=" + cnum +
                ", csum=" + csum +
                ", uid=" + uid +
                '}';
    }

    public Goods getGood() {
        return good;
    }

    public void setGood(Goods good) {
        this.good = good;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getCnum() {
        return cnum;
    }

    public void setCnum(Integer cnum) {
        this.cnum = cnum;
    }

    public BigDecimal getCsum() {
        return csum;
    }

    public void setCsum(BigDecimal csum) {
        this.csum = csum;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Car() {
    }
}
